import request from '@/utils/request'

// 查询钞币记录列表
export function listRecord(query) {
  return request({
    url: '/system/moneyRecord/list',
    method: 'get',
    params: query
  })
}

// 查询钞币记录列表
export function listRecordAll(query) {
  return request({
    url: '/system/moneyRecord/listAll',
    method: 'get',
    params: query
  })
}
// 查询钞币记录详细
export function getRecord(moneyRecordId) {
  return request({
    url: '/system/moneyRecord/' + moneyRecordId,
    method: 'get'
  })
}

// 新增钞币记录
export function addRecord(data) {
  return request({
    url: '/system/moneyRecord',
    method: 'post',
    data: data
  })
}


// 修改钞币记录
export function updateRecord(data) {
  return request({
    url: '/system/moneyRecord',
    method: 'put',
    data: data
  })
}

// 删除钞币记录
export function delRecord(moneyRecordId) {
  return request({
    url: '/system/moneyRecord/' + moneyRecordId,
    method: 'delete'
  })
}
